package com.childenglish.entity;

import java.util.Date;

/**
 * 通知/消息实体
 */
public class Notification {
    private Long id;
    private Long userId; // 接收用户ID
    private String title; // 通知标题
    private String content; // 通知内容
    private String type; // 通知类型: review_approved, review_rejected, system
    private Integer readStatus; // 阅读状态: 0=未读, 1=已读
    private Date createTime; // 创建时间
    private Date readTime; // 阅读时间
    private String relatedId; // 关联ID（如文件ID）
    private String relatedType; // 关联类型（如file）

    public Notification() {}

    public Notification(Long userId, String title, String content, String type) {
        this.userId = userId;
        this.title = title;
        this.content = content;
        this.type = type;
        this.readStatus = 0;
        this.createTime = new Date();
    }

    // Getter和Setter方法
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }

    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }

    public String getType() { return type; }
    public void setType(String type) { this.type = type; }

    public Integer getReadStatus() { return readStatus; }
    public void setReadStatus(Integer readStatus) { this.readStatus = readStatus; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }

    public Date getReadTime() { return readTime; }
    public void setReadTime(Date readTime) { this.readTime = readTime; }

    public String getRelatedId() { return relatedId; }
    public void setRelatedId(String relatedId) { this.relatedId = relatedId; }

    public String getRelatedType() { return relatedType; }
    public void setRelatedType(String relatedType) { this.relatedType = relatedType; }
}

